use_frameworks!

platform :ios, '9.0'

target 'UXPlayer_Example' do
  pod 'ZFPlayer/ControlView', '~> 4.0.1'
  pod 'ZFPlayer/AVPlayer', '~> 4.0.1'
#  pod 'ZFPlayer/ijkplayer', '~> 4.0.1'
  pod 'LSTPopView', '~> 0.2.122201'
  pod 'UXPlayer', :path => '../'

  target 'UXPlayer_Tests' do
    inherit! :search_paths

    pod 'FBSnapshotTestCase'
  end
end

#Xcode里配置：项目名->Target->Build Settings->Enable BitCode中设置为NO就可以了.
#post_install do |installer|
#    installer.pods_project.targets.each do |target|
#        target.build_configurations.each do |config|
#            config.build_settings['ENABLE_BITCODE'] = 'NO'
#        end
#    end
#end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
#      config.build_settings['ENABLE_BITCODE'] = 'NO'
      if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9.0
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
    end
  end
end
